package com.leyou.user.client;

import com.leyou.user.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @date: 2021/4/10 0010 0:43
 * @description:
 */
@FeignClient("user-service")
public interface UserClient {

    /**
     * 校验用户名和密码是否正确
     */
    @GetMapping("/query")
    public User query(
            @RequestParam("username") String username,
            @RequestParam("password") String password);
}
